package com.example.demo.entity.response;

/**
 * @version 1.0
 * @Author: LJP
 * @Description:        返回状态码枚举类
 * @Date: Created in 15:26 2021/11/30
 */
public enum ResultCodeEnum {

    SUCCESS(20000,"操作成功"),
    FAIL(10000,"操作失败"),
    PARAMETER_FAIL(10001,"参数错误"),
    AUTHORITY_FAIL(10002,"权限错误");


    private final Integer code;

    private final String msg;


    ResultCodeEnum(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public Integer code(){
        return this.code;
    }

    public String msg(){
        return this.msg;
    }

}
